import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
   {
    path: "/",
    redirect: "/helloworld",
  },
    {
    path: "/helloworld",
    name: "HelloWorld",
    component: () => import('@/components/HelloWorld.vue'),
  },
]
const router = createRouter({
    history: createWebHashHistory(), // 这是必须的配置项
  routes,
})
export default router